package com.easyctrl.manager;

import java.util.concurrent.ConcurrentLinkedQueue;

public class SendData {

	private ConcurrentLinkedQueue<byte[]> sendData;
	private static SendData instance;
	
	private SendData(){
		sendData = new ConcurrentLinkedQueue<byte[]>();
	}
	
	public static SendData getInstance(){
		if(instance == null){
			instance = new SendData();
		}
		return instance;
	}
	
	public void add(byte[] data){
		sendData.offer(data);
	}
	public ConcurrentLinkedQueue<byte[]> getSendData() {
		return sendData;
	} 
}
